package com.fzj.example.jdk18;

/**
 * ClassName: Sum2
 * date: 2019/11/12 14:33
 * Description: TODO
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
@FunctionalInterface
public interface Sum2 {
    public Integer sum(Integer x,Integer y);
    public boolean equals(Object a);
    public default void printMsg(Integer x,Integer y){
        System.out.println(sum(x,y));
    }
}
